/**
 * Created by dell on 2017/7/21.
 */
enum Gender{
    MALE,FEMALE;
    public String name;
}
public class GenderTest {
    public static void main(String[] args) {
        Gender g=Enum.valueOf(Gender.class,"FEMALE");
        g.name="女";
        System.out.println(g+"代表："+g.name);
    }
}
